Search
Brush Constructor (Color, string)
See Also
 






Initializes a new instance of the Brush class.

Namespace: MindFusion.Drawing
File: Brush.js

 Syntax

JavaScript  Copy Code

function Brush (color)

 Parameters

color

Type: Color, string
The color of this brush.

 Example

The following code creates a new Brush and assigns it as a background of a ToolTip. The Brush is semi-transparent gray:

JavaScript  Copy Code
ToolTip.brush = new Drawing.Brush(Drawing.Color.fromArgb(125, 100, 100, 100));

 See Also